import 'package:flutter/material.dart';

class Basic extends StatelessWidget {
  final String _author = '李白';

  final TextStyle _textStyle = TextStyle(
    fontSize: 16.0,
    height: 1.2,
  );

  @override
  Widget build(BuildContext context) {
    // return Container(
    //   child: Text(
    //     '$_author生活在盛唐时期，他性格豪迈，热爱祖国山河，游踪遍及南北各地，写出大量赞美名山大川的壮丽诗篇。他的诗，既豪迈奔放，又清新飘逸，而且想象丰富，意境奇妙，语言轻快，人们称他为“诗仙”。李白的诗歌不仅具有典型的浪漫主义精神，而且从形象塑造、素材摄取、到体裁选择和各种艺术手法的运用，无不具有典型的浪漫主义艺术特征。',
    //     style: _textStyle,
    //     textScaleFactor: 1.0,
    //     maxLines: 3,
    //     overflow: TextOverflow.ellipsis,
    //   ),
    // );
    // return RichText(
    //   text: TextSpan(
    //     text: '$_author',
    //     style: TextStyle(
    //       color: Colors.deepPurpleAccent,
    //       fontSize: 34.0,
    //       fontStyle: FontStyle.italic,
    //       fontWeight: FontWeight.w100,
    //     ),
    //     children: [
    //       TextSpan(
    //         text: '·',
    //         style: TextStyle(
    //           fontSize: 17.0,
    //           color: Colors.black,
    //         )
    //       ),
    //       TextSpan(
    //         text: '唐朝',
    //         style: TextStyle(
    //           fontSize: 17.0,
    //           color: Colors.lightBlue[200],
    //         ),
    //       ),
    //     ],
    //   ),
    // );
    return Container(
      color: Colors.white,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        // crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Container(
            child: Row(
              children: <Widget>[
                // Icon(Icons.pool, color: Colors.white, size: 32.0,),
                Icon(Icons.pool, color: Colors.white, size: 32.0,),
                // Icon(Icons.pool, color: Colors.white, size: 32.0,),
              ],
            ),
            // color: Colors.lightBlue[300],
            margin: EdgeInsets.all(8.0),
            padding: EdgeInsets.all(16.0),
            width: 90.0,
            height: 90.0,
            decoration: BoxDecoration(
              color: Colors.lightBlue[200],
              border: Border.all(
                color: Colors.lightBlue[300],
                width: 4.0,
                style: BorderStyle.solid,
              ),
              // borderRadius: BorderRadius.circular(16.0),
              boxShadow: [
                BoxShadow(
                  offset: Offset(0.0, 5.0),
                  color: Colors.lightBlue[100],
                  blurRadius: 25.0,
                  spreadRadius: -5.0,
                )
              ],
              // shape: BoxShape.circle,
              // gradient: RadialGradient(
              //   colors: [
              //     Colors.lightBlue[100],
              //     Colors.lightBlue[300],
              //   ],
              // ),
              gradient: LinearGradient(
                colors: [
                  Colors.lightBlue[100],
                  Colors.lightBlue[300],
                ],
                begin: Alignment.topCenter,
                end: Alignment.bottomCenter,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
